package com.xbell.app.sys.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.xbell.app.sys.common.PageInfo;
import com.xbell.app.sys.common.ResponseMessage;

@FeignClient(name="provider",fallback=UserServiceCallback.class,path="/appone")
public interface UserService {
	
	@RequestMapping(method = RequestMethod.GET, value = "/appone/home/")
	public String addUser(@RequestParam String userid,@RequestParam String pwd,@RequestParam String say);
	
	@RequestMapping(method = RequestMethod.GET, value = "/appone/home/")
	public String delUser(@RequestParam String userid,@RequestParam String say);
	
	@RequestMapping(method = RequestMethod.GET, value = "/appone/home/")
	public String getUer(@RequestParam String userid,@RequestParam String say);
	
	@RequestMapping(method = RequestMethod.GET, value = "/home/allLogs/")
	public Object allLogs(@RequestParam PageInfo pg,@RequestParam String title);
	
	@RequestMapping(method = RequestMethod.POST, value = "/home/delLog")
	public ResponseMessage<Object> delLog(String id);
	
	
}
